To place an object on the screen

Use an instruction called construction which includes:
  • The word new
  • The name of the thing you want to draw
FramedRect, FilledRect
FramedOval, FilledOval
Text
Line
  • A list of extra bits of information called actual parameters
    Determine size and position of object displayed
    Ex. new FramedRect ( 10, 10, 40, 40, canvas ) ;
    new Line (x1, y1, x2 , y2 , canvas );
    new Text ( " hello there ", x ,y , canvas );